 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
 <html>
 <body>
 <table width="100%">
        <tr>
          <td width="71%"> 

		  <div align="center" class="boldtext style7"><strong>Manage Actors </strong></div>		  </td>
   </tr>
        <tr>
          <td class="boldtext style7">
		  &nbsp;&nbsp;&nbsp;</td>
        </tr>
		 <tr>
		 <td>
		   <table>
		    <tr>
		   <td height="32"><select name="actorId" size="10" >
             <c:choose>
               <c:when test="${empty requestScope.actorArr}">
                 <option>No Actors have been Added</option>
               </c:when>
               <c:otherwise>
                 <c:forEach var="actor" items="${requestScope.actorArr}" varStatus="status">
                   <c:choose>
                     <c:when test="${status.count==1}">
                       <option selected value="<c:out value="${actor.actorId}" />           
                       " > </c:when>
                     <c:otherwise>
                       <option value="<c:out value="${actor.actorId}" />           
                       " > </c:otherwise>
                   </c:choose>
                   <c:out value="${actor.firstName}" />
                   <c:out value="${actor.lastName}" />
                 </c:forEach>
               </c:otherwise>
             </c:choose>
           </select></td>
			 <td>
			
			   <table width="234" border="0">
                 <tr>
                   <td width="228" height="25">
				   <input type="submit" name="Submit3" value="Remove Actor" 
				   onClick="removeActor()"/>				   </td>
                 </tr>
                 <tr>
                   <td>&nbsp;</td>
                 </tr>
                 <tr>
                   <td height="23" class="boldtext style9">First Name:
                     <input type="text" name="firstName"  /></td>
                 </tr>
                 <tr>
                   <td height="23" class="boldtext style9" >Last Name:
                   <input type="text" name="lastName" /></td>
                 </tr>
                 <tr>
                   <td height="23" class="boldtext style9">
				     <input type="submit" name="Submit" value="Add"  onclick="addActor()" /></td>
                 </tr>
               </table>			 
               </td>
  	       </tr>
		   </table>		   
		   </td>
  	    </tr>
		 <tr>
          <td height="32"><div align="center"></div></td>
        </tr>
</table>
</body>
</html>